﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Login.ascx.cs" Inherits="Controls_Login" %>
<div id="divLogin" style="display: none">
    <script type="text/javascript" language="javascript">
        jQuery(function ($) {
            $('#idlogin').click(function () {
                Popup.showModal('divLogin');
            });
            $('#xlogin').click(function () {
                Popup.hide('divLogin');
            });
            $('#idregister').click(function () {
                Popup.hide('divLogin');
                Popup.showModal('register');
            });
            $('#btn_repass').click(function () {
                Popup.hide('divLogin');
                Popup.showModal('resetpass');
            });
        });
    </script>
    <div style="background-color: #333; height: 30px">
        <div style="float: left; margin-top: 5px; margin-left: 5px; font-weight: bold; color: #ffffff">
            <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Icon/login_icon.png" />&nbsp;Đăng
            nhập</div>
        <div style="float: right; margin-top: 5px; margin-right: 5px">
            <div id="xlogin" style="cursor: pointer; color: White">
                [x]</div>
        </div>
        <div style="clear: both">
        </div>
    </div>
    <div style="margin: 10px 0px; text-align: center">
        Bạn chưa có tài khoản? Hãy đăng kí <a id="idregister" href="javascript:void(0)" style="text-decoration: underline">
            tại đây</a>
    </div>
    <table border="0" cellpadding="0" style="border-collapse: collapse" width="100%">
        <tr>
            <td style="width: 30%; text-align: right">
                Tên đăng nhập:
            </td>
            <td style="width: 70%; text-align: left">
                <div class="txblogin">
                    <asp:TextBox ID="txbuser" runat="server" CssClass="txb"></asp:TextBox>
                </div>
            </td>
        </tr>
        <tr>
            <td style="width: 30%; text-align: right">
                Mật khẩu:
            </td>
            <td style="width: 70%; text-align: left">
                <div class="txblogin">
                    <asp:TextBox ID="txbpass" runat="server" CssClass="txb" TextMode="Password"></asp:TextBox>
                </div>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:CheckBox ID="set_cookie" runat="server" Text="Nhớ mật khẩu" />
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td colspan="2" align="left">
                <asp:Button ID="btn_login" runat="server" Text="Đăng nhập" CssClass="login_btn" OnClick="btn_login_Click"
                    CausesValidation="false" />
                &nbsp;&nbsp;
                <input id="btn_repass" type="button" value="Quên mật khẩu" class="login_btn" />
            </td>
        </tr>
    </table>
</div>
